/**
 * 在线作业
 */

import request from "@/utils/request.js"

// 列表
export function getListApi(params) {
  return request({
    url: '/admin/Task/list',
    method: 'POST',
    params
  })
}

// 根据id 查看详情
export function getDetailApi(params) {
  return request({
    url: '/admin/Task/info',
    method: 'POST',
    params
  })
}

// 新增
export function addOnlineWorkApi(params) {
  return request({
    url: '/admin/Task/add',
    method: 'POST',
    params
  })
}

// 编辑
export function editOnlineWorkApi(params) {
  return request({
    url: '/admin/Task/exit',
    method: 'POST',
    params
  })
}

// 删除
export function delOnlineWorkApi(params) {
  return request({
    url: "/admin/Task/remove",
    method: 'POST',
    params
  })
}

// 获取题库列表
export function getQuestionsListApi(params) {
  return request({
    url: "/edu/questions/list",
    method: "POST",
    params
  })
}